<?php $this->load->view('common/pagehead')?>
<?php $this->load->view('common/header')?>
<div class="clr-both"></div>
	  <div class="spacer-10"></div>
	  <div class="left w680"><!-- 68 div start -->
		<div><!-- deal detail part-->
			<h1 class="heading" style="margin-left: 2px;">About <?php echo $storeDetailsArray[0]['store_name'];?></h1>
            <div class="left"><img src="<?php if($storeDetailsArray[0]['store_image']!=''){ echo $storeDetailsArray[0]['store_image'];}else{ echo '/public/images/products/noimage.png'; }?>" width="200" height="166" /></div>
            <div class="right">
            	<div class="mtr">
            		<span class='st_facebook_vcount' displayText='Facebook'></span>
					<span class='st_twitter_vcount' displayText='Tweet'></span>
					<span class='st_linkedin_vcount' displayText='LinkedIn'></span>
					<span class='st_pinterest_vcount' displayText='Pinterest'></span>
            	</div>
            </div>
            <div class="clr-both"></div>
		</div><!-- deal detail part-->
        <div id="desc"><!-- deal description part-->
        	<span style="font-size:13px;font-weight:normal;line-height:20px;text-align:justify;"><?php echo $storeDetailsArray[0]['store_description']; ?></span>
        </div><!-- deal description part-->
        <div class="clr-both"></div>
        <div class="mt10">
        	<img src="/public/images/banner-big.png" style="margin-left:15px;" />
        </div>
        <div class="mt10" id="deals"><!-- other deals part-->
        	<h2 class="other"><?php echo $storeDetailsArray[0]['store_name'];?> Deals</h2>
            <ul>
            	<?php if(isset($storeDealArray) && !empty($storeDealArray)){ foreach($storeDealArray as $deals){?>
            	<li><!-- box starts -->
                	<div align="center"><img src="<?php if($deals['deals_image']!=''){ echo $deals['deals_image'];}else{ echo '/public/images/products/noimage-small.png';}?>" /></div>
                    <p align="center" class="txt"><?php echo ucfirst($deals['deals_product_name']); ?></p>
                    <p align="center" class="txt" style="color:#64aa23;"><?php echo substr(ucfirst($deals['deals_name']), 0, 35); ?>...</p>
                    <div>
                    	<p class="left txt">Rs <?php echo $deals['deals_price']-(($deals['deals_price']*$deals['deals_saving'])/100); ?></p>
                        <p class="right txt" style="text-decoration:line-through;"><?php echo $deals['deals_price']; ?></p>
                        <p class="clr-both"></p>
                    </div>
                    <a href="/<?php echo $deals['deals_url'];?>" style="text-decoration:none;"><input type="button" value="See the Deal" /></a>
                    <div class="mt10" align="center"><a href="/deals/<?php echo $deals['store_url'];?>" style="font-size:14px;text-decoration:none;color:#fff;line-height:28px;">
                    	<?php if(isset($deals['store_image']) && $deals['store_image']!=''){?>
                    		<img src="<?php echo $deals['store_image'];?>" width="142" height="28" border="0"/>
                 		<?php }else{?>
                 			<div style="width:144px;height:28px;background-color:#aaa;padding:0 5px;border-radius:5px;">
                 				<div class="left"><img src="/public/images/no-cam.png" border="0" /></div>
                 				<div class="right">No Image Found</div>
                 				<div class="clr"></div>
                 			</div>
                 		<?php }?></a>
                    </div>
                </li><!-- box ends -->
                <?php }}?>
            </ul>
        </div><!-- other deals part-->
	  </div><!-- 680 div end -->
      <div class="right w300"><!-- 300 div starts-->
      <div>
      	<a href="/<?php if(isset($bannersArray[0]['banner_link']) && $bannersArray[0]['banner_link']!=''){ echo $bannersArray[0]['banner_link'];}?>" target="_blank" rel="nofollow"><?php if(isset($bannersArray[0]['banner_image']) && $bannersArray[0]['banner_image']!=''){?><img src="<?php echo $bannersArray[0]['banner_image'];?>" alt="<?php echo $bannersArray[0]['banner_alt']; ?>" width="299" height="250" border="0" /><?php }?></a>
      </div>
      <div class="mt10"><img src="/public/images/fb-wid.png" width="300" /></div>
      <div style="margin-top:14px;" id="top10"><!-- top 10 starts-->
      	<h3>
        	<div class="left" style="color:#1d8d03;font-size:80px;line-height:60px;font-family:'Times New Roman';">10
            	<div style="background-color:#ebebeb;position:absolute;font-size:18px;line-height:20px;padding:0px 5px;margin:-36px 0 0 -5px;">TOP</div>
            </div>
            <div class="right" style="width:200px;margin:18px 0 0 10px;">
            	<p style="font-size:18px;color:#f46c30;line-height:22px;">HOTTEST</p>
                <p style="font-size:18px;color:#5b595a;line-height:22px;">DAILY DEALS</p>
            </div>
            <div class="clr-both"></div>
        </h3>
        <div style="background-color:#1e8d03;height:10px;">&nbsp;</div>
        <div id="cen">
        	<ul>
        		<?php foreach($similarOffersArray as $count => $values){?>
            	<li><!-- box 1-->
                	<div class="left" style="font-size:40px;font-style:italic;color:#f66023;line-height:40px;margin-top:20px;font-weight:bold;"><?php if($count<9){ echo '0'.($count+1);}else{  echo $count+1;}?></div>
                    <div class="left" style="width:1px;background-color:#fe9a9a;height:80px;margin:0 5px;">&nbsp;</div>
                    <div class="right" style="width:205px;">
                    	<div class="left"><img src="<?php if(isset($values['deals_image']) && $values['deals_image']!=''){ echo $values['deals_image'];} else{ echo '/public/images/products/noimage-small.png';}?>" style="margin:20px 5px 0 0;" width="45" height="37" /></div>
                        <div class="left">
                        	<p style="margin-top:20px;width:70px;word-wrap:break-word;"><?php echo substr($values['deals_product_name'], 0, 16);?> ..</p>
                        </div>
                        <div class="right" style="margin-top:20px;">
                        	<p style="margin-left:4px;">Rs <?php echo $values['deals_price']-(($values['deals_price']*$values['deals_saving'])/100); ?></p>
                            <p><a href="/<?php echo urlencode($values['deals_url']);?>" style="text-decoration:none;"><input type="button" value="See It" style="border:0;background-color:#1d8d05;padding:2px 18px;color:#fff;font-size:14px;font-weight:bold;border-radius:5px;cursor:pointer;" /></a></p>
                        </div>
                        <div class="clr-both"></div>
                    </div>
                    <div class="clr-both"></div>
                </li><!-- box 1-->
                <?php }?>
            </ul>
        </div>
        <div class="clr-both"></div>
      </div><!-- top 10 ends-->
      </div><!-- 300 div ends -->
<?php $this->load->view('common/footer');?>